/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年9月8日 下午3:11:32
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.ssm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniu.ssm.domain.Blog;
import com.woniu.ssm.mapper.BlogMapper;

/**
 * @author Administrator
 *
 */
@Service
@Transactional
public class BlogServiceImpl implements BlogService{
	@Autowired
	BlogMapper bm;
	@Override
	public List<Blog> selectListBlog() {
		return bm.selectListBlog();
	}

	@Override
	public Blog selectBlog(int id) {
		return bm.selectBlog(id);
	}

	@Override
	public void addBlog(Blog blog) {
		bm.addBlog(blog);
	}

	@Override
	public void delBlog(int id) {
		bm.delBlog(id);
	}

	@Override
	public void updateBlog(Blog blog) {
		bm.updateBlog(blog);
	}

}
